{config_load file="lang/$language/lang_$language.conf" section="login"}
{config_load file="lang/$language/lang_$language.conf" section="create_account"}
{if $info_message}
	<div class="headerError">
		{$info_message}
	</div>
{/if}
<h1>{#heading_login#}</h1>
{if $account_option=='both' or $account_option=='guest'}
	<h2>{#title_guest#}</h2>
	{#text_guest#}<br /><br />
	{$BUTTON_GUEST}
{/if}

{if $account_option=='account' or $account_option=='both'}
	<h2>{#title_returning#}</h2>
    {$FORM_ACTION}
		<fieldset>
			{if $VVIMG !=''}
				<br />{#text_returning_hinweis#}<br /><br />
				<dl>
					<dt class="w150">&nbsp;</dt>
					<dd>{$VVIMG}</dd>
				</dl>
				<dl>
					<dt class="w150">{#text_returning_eingabe#}</dt>
					<dd>
						{$INPUT_CAPTCHA}
					</dd>
				</dl>
			{/if}
			
			<div data-role="fieldcontain">
				<label for="login_email_address">
					{#text_email#}
				</label>
				{$INPUT_LOGIN_MAIL|replace:'name="email_address"':'name="email_address" id="login_email_address"'}
			</div>
		
			<div data-role="fieldcontain">
				<label for="login_password">{#text_password#|replace:'Ihr ':''}</label>
				{$INPUT_LOGIN_PASSWORD|replace:'name="password"':'name="password" id="login_password"'}
			</div>
			
			<div class="ui-grid-a">
				<div class="ui-block-a">{$BUTTON_LOGIN|replace:'css_img_button"':'css_img_button" data-icon="arrow-r" data-theme="b"'}</div>
				<div class="ui-block-b">
					<a href="{$LINK_LOST_PASSWORD}" data-role="button" data-theme="d" data-icon="forward">{#text_lost_password#}</a>
				</div>
			</div>
		</fieldset>
	{$FORM_END}<br />
	
	{if $FORM_ACTION_CREATE}
		<h2>{#title_new#}</h2>
		<p>{#text_new#}</p>
		{$FORM_ACTION_CREATE}
			<div class="ar inputRequirement">{#text_must#}</div><br />
			{if $INPUT_MALE}
				<div data-role="fieldcontain">
		    		<fieldset data-role="controlgroup">
		    			<legend>{#text_gender#}</legend>
		    			{$INPUT_MALE|replace:'name="gender"':'name="gender" id="gender-1"'}
		    			<label for="gender-1">{#text_male#}</label>
		    			
		    			<legend>{#text_gender#}</legend>
		    			{$INPUT_MALE|replace:'name="gender"':'name="gender" id="gender-2"'}
		    			<label for="gender-2">{#text_female#}</label>
		    		</fieldset>
		    	</div>
			{/if}
			{if $INPUT_TITLE}
				<div data-role="fieldcontain">
					<label for="create_title">{#text_title#}</label>
					{$INPUT_TITLE|replace:'name="title"':'name="title" id="create_title"'}
				</div>
			{/if}
			{if $INPUT_FIRSTNAME}
				<div data-role="fieldcontain">
					<label for="create_firstname">{#text_firstname#}</label>
					{$INPUT_FIRSTNAME|replace:'name="firstname"':'name="firstname" id="create_firstname"'}
				</div>
			{/if}
			{if $INPUT_LASTNAME}
				<div data-role="fieldcontain">
					<label for="create_lastname">{#text_lastname#}</label>
					{$INPUT_LASTNAME|replace:'name="lastname"':'name="lastname" id="create_lastname"'}
				</div>
			{/if}
			{if $INPUT_DOB}
				<div data-role="fieldcontain">
					<label for="create_dob">{#text_birthdate#}</label>
					{$INPUT_DOB|replace:'name="dob"':'name="dob" id="create_dob"'}
				</div>
			{/if}
			{if $INPUT_EMAIL}
				<div data-role="fieldcontain">
					<label for="create_email">{#text_email#}</label>
					{$INPUT_EMAIL|replace:'name="email"':'name="email" id="create_email"'}
				</div>
			{/if}
			{if $INPUT_EMAIL_CONFIRMATION}
				<div data-role="fieldcontain">
					<label for="create_email_confirmation">{#text_email_confirmation#}</label>
					{$INPUT_EMAIL_CONFIRMATION|replace:'name="email_confirmation"':'name="email_confirmation" id="create_email_confirmation"'}
				</div>
			{/if}<br />
			{if $INPUT_COMPANY}
				<div data-role="fieldcontain">
					<label for="create_company">{#text_company#}</label>
					{$INPUT_COMPANY|replace:'name="company"':'name="company" id="create_company"'}
				</div>
				{if $INPUT_VAT}
					<div data-role="fieldcontain">
						<label for="create_vat">{#text_ustid#}</label>
						{$INPUT_VAT|replace:'name="vat"':'name="vat" id="create_vat"'}
					</div>
				{/if}
				<br />
			{/if}

			{if $INPUT_STREET}
				<div data-role="fieldcontain">
					<label for="create_street_address">{#text_street#}</label>
					{$INPUT_STREET|replace:'name="street_address"':'name="street_address" id="create_street_address"'}
				</div>
			{/if}
			{if $INPUT_STREET_NUM}
				<div data-role="fieldcontain">
					<label for="create_street_address_num">{#text_street#}</label>
					{$INPUT_STREET_NUM|replace:'name="street_address_num"':'name="street_address_num" id="create_street_address_num"'}
				</div>
			{/if}
			{if $INPUT_SUBURB}
				<div data-role="fieldcontain">
					<label for="create_suburb">{#text_suburb#}</label>
					{$INPUT_SUBURB|replace:'name="suburb"':'name="suburb" id="create_suburb"'}
				</div>
			{/if}
			{if $INPUT_CITY}
				<div data-role="fieldcontain">
					<label for="create_city">{#text_city#}</label>
					{$INPUT_CITY|replace:'name="city"':'name="city" id="create_city"'}
				</div>
			{/if}
			{if $INPUT_CODE}
				<div data-role="fieldcontain">
					<label for="create_postcode">{#text_code#}</label>
					{$INPUT_CODE|replace:'name="postcode"':'name="postcode" id="create_postcode"'}
				</div>
			{/if}
			{if $INPUT_COUNTRY}
				<div data-role="fieldcontain">
					<label for="create_country" class="select">{#text_country#}</label>
					{$INPUT_COUNTRY|replace:'name="country"':'name="country" id="create_country"'}
				</div>
			{/if}
			{if $INPUT_STATE}
				<div data-role="fieldcontain">
					<label for="create_state" class="select">{#text_state#}</label>
					{$INPUT_STATE|replace:'name="state"':'name="state" id="create_state"'}
				</div>
			{/if}
			
			{if $INPUT_TEL || $INPUT_FAX}<br />
					{if $INPUT_TEL}
						<div data-role="fieldcontain">
							<label for="create_telephone">{#text_tel#|replace:'nummer':''}</label>
							{$INPUT_TEL|replace:'name="telephone"':'name="telephone" id="create_telephone"'}
						</div>
					{/if}
					{if $INPUT_FAX}
						<div data-role="fieldcontain">
							<label for="create_fax">{#text_fax#|replace:'nummer':''}</label>
							{$INPUT_FAX|replace:'name="fax"':'name="fax" id="create_fax"'}
						</div>
					{/if}
				</fieldset>
			{/if}
			{if $INPUT_PASSWORD || $INPUT_CONFIRMATION}<br />
				{if $INPUT_PASSWORD}
					<div data-role="fieldcontain">
						<label for="create_password">{#text_password#}</label>
						{$INPUT_PASSWORD|replace:'name="password"':'name="password" id="create_password"'}
					</div>
				{/if}
				{if $INPUT_CONFIRMATION}
					<div data-role="fieldcontain">
						<label for="create_confirmation">{#text_confirmation#}</label>
						{$INPUT_CONFIRMATION|replace:'name="confirmation"':'name="confirmation" id="create_confirmation"'}
					</div>
				{/if}
			{/if}
			{if $INPUT_NEWSLETTER}
				<fieldset data-role="controlgroup">
					{$INPUT_NEWSLETTER|replace:'name="newsletter"':'name="newsletter" id="create_newsletter"'}
					<label for="create_newsletter">{#receive_newsletter#}</label>
				</fieldset>
			{/if}
			{$DSG|replace:'name="blabla"':'name="blabla" id="create_textarea" disabled'}<br />
			<fieldset data-role="controlgroup">
				{$DATENSG_CHECKBOX|replace:'name="datensg"':'name="datensg" id="create_dsg"'}
				<label for="create_dsg">{#text_accept_datensg#|replace:':':''}</label>
			</fieldset>
			<div class="ui-grid">
				{$BUTTON_SUBMIT|replace:'css_img_button"':'css_img_button" data-role="button" data-icon="arrow-r" data-iconpos="right" data-theme="b"'}
			</div>
		{$FORM_END}
	{/if}
{/if}